package com.chaosj.skill.grpc

import io.grpc.Server
import io.grpc.ServerBuilder

/**
 * @Description:
 * @author: caoyangjie
 * @date: 2019年12月2019/12/6日 15:26
 * @Copyright: © 赢时胜
 */
class StartService {
    static void main(args){
        ServerBuilder builder = ServerBuilder.forPort(9999)
        builder.addService(new MyGrpcService())
        Server server = builder.build()
        server.start()
        server.awaitTermination()
    }
}
